package com.geeaks.learn.guava.eventbus;

import com.google.common.eventbus.Subscribe;

/**
 * @Description: 消息接受类
 * @author gaoxiang
 * @date 2019-02-20 17:57:22
 */ 
public class EventListener {
	
	public int lastMessage = 0;
	
	@Subscribe
	public void listen(TestEvent event) {
		lastMessage = event.getMessage();
		System.out.println("EventListener:" + lastMessage);
	}
	
	public int getLastMessage() {
		return lastMessage;
	}
}